﻿using SunnyUI.Framework;
using System.Configuration;
using System;

namespace HZWA
{
    public partial class LoginForm : UILoginForm
    {
        private string username = "";

        private string password = "";
        public LoginForm()
        {
            InitializeComponent();
            this.username = ConfigurationManager.AppSettings["username"];
            this.password = ConfigurationManager.AppSettings["password"];
        }

        private void FLogin_ButtonLoginClick(object sender, System.EventArgs e)
        {
            //
            if ((UserName == this.username) && (Password == this.password))
            {
                IsLogin = true;
                Close();
            }
            else
            {
                this.ShowInfoTip("用户名或密码错误!");
            }
        }
    }
}